package io.gitee.hefren.hhsharding.core;

/**
 * @Date 2024/8/16
 * @Author lifei
 */
public class HhShardingContext {

    private static final ThreadLocal<HhShardingResult> LOCAL = new ThreadLocal<>();

    public static HhShardingResult getHhShardingResult() {
        return LOCAL.get();
    }

    public static void setHhShardingResult(HhShardingResult hhShardingResult) {
        LOCAL.set(hhShardingResult);
    }
}
